<div class="main fly-user-main layui-clear">
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
        <li class="layui-nav-item"><a href="{:U('home/u/index',array('id'=>$_SESSION['id']))}"> <i class="layui-icon"></i> 我的主页 </a></li>
        <li class="layui-nav-item "><a href="{:U('home/users/index')}"> <i class="layui-icon"></i> 用户中心 </a></li>
        <li class="layui-nav-item layui-this"><a href="{:U('home/set/index')}"> <i class="layui-icon"></i> 基本设置
        </a></li>
        <li class="layui-nav-item "><a href="{:U('home/msg/index')}"> <i class="layui-icon"></i> 我的消息 </a>
        </li>
        <!-- <li class="layui-nav-item "><a href="{:U('home/vip/index')}"> <i class="layui-icon"></i> 会员授权 </a></li> -->
    </ul>
    <div class="site-tree-mobile layui-hide"><i class="layui-icon"></i></div>
    <div class="site-mobile-shade"></div>
    <div class="fly-panel fly-panel-user" pad20="">
        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title">
                <li class="layui-this"><a href="http://fly.layui.com/user/activate/">激活邮箱</a></li>
            </ul>
            <div class="layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
                <ul class="layui-form">
                    <?php if ($info['estate']==1) { ?>
                        <li class="layui-form-li">
                            <label for="activate">您的邮箱：</label>
                            <span class="layui-form-text"><?php echo $info['email'] ?>
                                <em style="color:#c00;">（己成功激活）</em>
                            </span>
                        </li>
                    <?php }else{ ?>
                        <li class="layui-form-li">
                            <label for="activate">您的邮箱：</label>
                            <span class="layui-form-text"><?php echo $info['email'] ?> 
                                <em style="color:#c00;">（尚未激活）</em>
                            </span>
                        </li>
                        <li class="layui-form-li" style="margin-top: 20px; line-height: 26px;">
                            <div> 1. 如果您未收到邮件，或激活链接失效，您可以 
                                <a class="layui-form-a" style="color:#4f99cf;" id="LAY-activate" href="javascript:" email="<?php echo $info['email'] ?>">重新发送邮件</a>，或者 
                                <a class="layui-form-a" style="color:#4f99cf;" href="{:U('home/set/index')}">更换邮箱</a>；
                            </div>
                            <div> 2. 如果您始终没有收到 九维 发送的邮件，请注意查看您邮箱中的垃圾邮件；</div>
                            <div> 3. 如果你实在无法激活邮件，您还可以联系管理员</div> 
                        </li>
                    <?php } ?>
                </ul>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form','jquery'], function(){
        var form = layui.form(),
            layer = layui.layer,
            $= layui.jquery;

        $('#LAY-activate').click(function () {

            sdflsdfsdfsdf();
            
            $.ajax({
                url: '{:U('home/set/sendemail')}',
                type: 'GET',
                dataType: 'json',
            })
             .done(function(respones) {
             if (respones.error==1) {
                sfsdfsfdsf
                layer.alert(respones.info, {icon: 6},function  () {
                    location.replace('{:U('home/set/index')}')
                    });
             }else if(respones.error==2) { 
                layer.msg(respones.info);
                }else{
                    layer.msg(respones.info);
                }
            })
           .fail(function() {
              console.log("error");
           })

            return false;
            





        })
    });


</script>